package com.fishingwithme;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.fishingwithme.infrastructure.mapper")
@ComponentScan(basePackages = {"com.fishingwithme"})
@EnableCaching
@EnableTransactionManagement // 启用事务管理
@EnableScheduling
@EnableMethodSecurity
public class FishingWithMeApplication {
    public static void main(String[] args) {
        SpringApplication.run(FishingWithMeApplication.class, args);
    }
}